﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Threading;
using System.Globalization;
using System.Resources;

public partial class QuyTrinhDuc : System.Web.UI.Page
{
    private Boolean IsVN = true;
    private String languageCode = "vi-VN";
    private ResourceManager rm = new ResourceManager("Resources.SiteMap", System.Reflection.Assembly.Load("App_GlobalResources"));

    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            languageCode = Session[HangSo.LANGUAGE_CODE].ToString();

            if (languageCode == "en-us")
            {
                IsVN = false;
            }

        }
        catch (Exception ex)
        {
        }

        if (!Page.IsPostBack)
        {
            //ThongTinCongTy theThongTinCongTy = ThongTinCongTyProvider.GetThongTinCongTyByCongTyID(HangSo.COMPANY_ID);

            //if (theThongTinCongTy != null)
            //{
            //    if (IsVN == true)
            //    {
            //        this.ltrGioiThieu.Text = theThongTinCongTy.GioiThieuVN;
            //    }
            //    else
            //    {
            //        this.ltrGioiThieu.Text = theThongTinCongTy.GioiThieuOther;
            //    }
            //}

            Thread.CurrentThread.CurrentCulture = new CultureInfo(languageCode);
            LoadLanguage(Thread.CurrentThread.CurrentCulture);
        }
    }

    public void LoadLanguage(CultureInfo ci)
    {
        this.ltrQuyTrinh_Title.Text = rm.GetString("ltrQuyTrinh_Title", ci);
    }
}
